<?php
require_once(APPLICATION_PATH . DIRECTORY_SEPARATOR . 'modules'
        											. DIRECTORY_SEPARATOR . 'cms'
        											. DIRECTORY_SEPARATOR . 'admin'
													. DIRECTORY_SEPARATOR . 'models'
													. DIRECTORY_SEPARATOR . 'Category.php');
class Zend_View_Helper_NewsletterModule {

    public $view;
	
    public function setView($view) {
        $this->view = $view;
    }

    public function newsletterModule() {        
        $this->view->addScriptPath(APPLICATION_PATH . DIRECTORY_SEPARATOR . 'modules'
        											. DIRECTORY_SEPARATOR . 'cms'
        											. DIRECTORY_SEPARATOR . 'public'
        											. DIRECTORY_SEPARATOR . 'views'
        											. DIRECTORY_SEPARATOR . 'scripts');
		$model = new Category();
		$this->view->categories = $model->fetchAll($model->select());
        echo $this->view->render('subscribe.phtml');
    }

}